package com.bwie.controller;

import com.bwie.service.TbDictService;
import com.bwie.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2024/10/18 13:27
 */

@RestController
@RequestMapping(value = "/prod/dict")
@Slf4j
public class TbDictController {

    @Autowired
    TbDictService tbDictService;

    /**
     * 获取字典列表
     * @param dictType
     * @return
     */
    @PostMapping(value = "/getDictList/{dictType}")
    public R getDictList(@PathVariable("dictType") Integer dictType){
        return tbDictService.getDictList(dictType);
    }

}
